package com.wjm.api.ReflectPackage;

/**
 * Data:2022年07月30日
 * Author:wjm
 * Content:
 */
public class Car {
    private int cid;
    private String name;
    public double money;

    @Override
    public String toString() {
        return "Car{" +
                "cid=" + cid +
                ", name='" + name + '\'' +
                ", money=" + money +
                '}';
    }

    public Car(int cid, String name, double money) {
        this.cid = cid;
        this.name = name;
        this.money = money;
    }

    public Car(){

    }

    public Car(int cid, String name) {
        this.cid = cid;
        this.name = name;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }
    public int getCid() {
        return cid;
    }

    public void setCid(int cid) {
        this.cid = cid;
    }

    public String getName() {
        System.out.println("我是getName，我执行了");
        return name;
    }

    public void setName(String name) {
        System.out.println("我是setName，我执行了");
        this.name = name;
    }

}
